import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { 
      path: '/', 
      redirect: '/wallmessage?id=0' 
    },
    {
      path: '/',
      name: 'home',
      component:HomeView,
      children:[{
        path:'wallmessage',
        name:'wallmessage',
        component:()=>import('../views/WallMessage.vue')
      }]
    }
  ]
})

export default router